$(function () {

	var intoList = [
	    {
	      name: '胡欢',
	      time: '17:00'
	    },{
	      name: '陈超',
	      time: '17:00'
	    },{
	      name: '胡欢',
	      time: '17:00'
	    },{
	      name: '陈超',
	      time: '17:00'
	    },{
	      name: '胡欢',
	      time: '17:00'
	    },{
	      name: '陈超',
	      time: '17:00'
	    }
	]
	renderHtml(intoList,'#intoList');

	var outList = [
	    {
	      name: '陈超',
	      time: '17:00'
	    },{
	      name: '胡欢',
	      time: '17:00'
	    },{
	      name: '陈超',
	      time: '17:00'
	    },{
	      name: '胡欢',
	      time: '17:00'
	    },{
	      name: '陈超',
	      time: '17:00'
	    },{
	      name: '胡欢',
	      time: '17:00'
	    }
	]
	renderHtml(outList,'#outList');

});

function renderHtml(listData,id) {
	//console.log(listData);
	str = "";
	$.each(listData ,function (index,item) {
	  console.log(item);
	  str += "<div class=\"list-item\">" +
	           "<div class=\"list-item-left\">" +
	            item.name +
	           "</div>" +
	           "<div class=\"list-item-right\">" +
	              item.time +
	           "</div>" +
	         "</div>"
	});
	$(id).html(str);
}